package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.message.pojo.dto.MessageRabbitMqDTO;
import com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO;
import com.xbongbong.pro.product.pojo.dto.CostRecalculationDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author jiping.yang
 * @date 2021/12/2 18:28
 */
@FeignClient(name = "pro-web-pc",contextId = "costRecalculstionFeignClient")
public interface CostRecalculstionFeignClient {

    /**
     * Description: 成本重算 消息接口
     * @param costRecalculationDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author jiping.yang
     * @date 20121/12/2 17:29
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/costRecalculation/add", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> costRecalculationAdd(@RequestBody CostRecalculationDTO costRecalculationDTO);

    /**
     * Description: 成本重算 消息接口
     * @param costRecalculationDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author jiping.yang
     * @date 20121/12/2 17:29
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/costRecalculation/delete", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> costRecalculationDelete(@RequestBody CostRecalculationDTO costRecalculationDTO);
}
